package com.lzc.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 消息记录类
 */
@Setter
@Getter
@ToString
@TableName("messages")
public class Message {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("source_id")
    private Long sourceId;

    @TableField("target_id")
    private Long targetId;

    private String context;

    @TableField("send_time")
    private LocalDateTime sendTime;

    private byte state;

    // 类型
    private Integer code;
}
